<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>

    <script>

        function getvalue()
        {
            var tempstr=" ";
            var selectpara=document.getElementById("zms");
            for(var i=0;i<selectpara.length;i++)
            {
                if (selectpara.options[i].selected)
                {
                    //tempstr=tempstr+selectpara.options[i].text; //取得是option中间的文本
                    tempstr=tempstr+selectpara.options[i].value;//取得是option的value

                }
            }
            document.getElementById("myvalue").innerHTML=tempstr;
        }

    </script>
</head>
<body>

<select id="zms" multiple="true">
    <option value="巴萨">巴塞罗那</option>
    <option value="皇马">皇家马德里</option>
    <option value="米兰">AC米兰</option>

</select>
<div id="myvalue"></div>
<input type="button" value="tijiao" onclick="getvalue()">
</body>
</html>